// preload.js
const { contextBridge, ipcRenderer } = require('electron');

contextBridge.exposeInMainWorld('electron', {
  minimize: () => {
    console.log('minimize');
    ipcRenderer.send('minimize-window')
  },
  maximize: () => {
    console.log('maximize');
    ipcRenderer.send('maximize-window')
  },
  close: () => {
    console.log('close');
    ipcRenderer.send('close-window')
  }
});